{assign var=formId value='list'}
<div id="content">
    <div class="highlight">
        {if isset($tabadmindefault)}{$tabadmindefault}{/if}
		{if isset($searchtype)}{$searchtype}{/if}
        {if $infoText}
            <div class="{$infoClass}">
                <h4>Result:</h4>
                <p>{$infoText}</p>
            </div>
        {/if}
        {include file="admin/toolbar.temp.html" title=toolbar}
        <form id="{$formId}" name="{$formId}" action="{$base_url}" method="post">
            <div class="tableContent">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <thead>
                        <tr>
                        <th width="5%"><input class="box3" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('{$formId}');" /></th>
                        <th width="5%">{l s='no'}</th>
                        <th width="25%"><a href="{$base_url}/{$op}/act/list/searchTerms/{$searchTerms}/searchStatus/{$searchStatus}/orderBy/name/orderDir/{if $orderBy eq 'name' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{l s='click_here_to_sort_by'} {l s='name'}">{l s='name'}{if $orderBy eq 'name'}&nbsp;<img src="{$base_url}/templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
                        <th width="25%">{l s='iso_code'}</th>                        
                        <th width="10%"><a href="{$base_url}/{$op}/act/list/searchTerms/{$searchTerms}/searchStatus/{$searchStatus}/orderBy/position/orderDir/{if $orderBy eq 'position' && $orderDir eq 'ASC'}DESC{else}ASC{/if}" title="{l s='click_here_to_sort_by'} {l s='position'}">{l s='position'}{if $orderBy eq 'position'}&nbsp;<img src="{$base_url}/templates/{$usertemplate}/images/ico_{if $orderDir eq 'DESC'}down{else}up{/if}.gif" alt="" width="12" height="12" />{/if}</a></th>
                        <th width="15%">{l s='status'}</th>
                        <th width="15%">{l s='actions'}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {if $listObjects}
                        {assign var=i value=$listObjects.pages.start}
                        {foreach from=$listObjects.data item=object}
                        {assign var=i value=$i+1}
                        <tr{if $i%2 == 0} class="bgType"{/if}>
                            <td width="5%"><input class="box3" type="checkbox" name="oIds[]" id="oIds" value="{$object->getField('id')}" /></td>
                            <td width="5%">{$object->getField('id')}</td>
                            <td width="25%">{$object->getField('name')}</td>
                            <td width="25%">{$object->getField('iso_code')}</td>
                            <td width="10%">
                            	<input type="text" name="position" class="position" oId="{$object->getField('id')}" value="{$object->getField('position')}" />
                            </td>
                            <td width="15%">{if $object->isDeleted()}<span style="color: #FF0000">{$object->getStatusText()}</span>{else}{$object->getStatusText()}{/if}</td>
                            <td width="15%">
                                {include file="admin/action.temp.html" title=action}
                            </td>
                        </tr>
                        {/foreach}
                        {/if}
                    </tbody>
                </table>
                <div class="paging">
                    <p class="btnType">
                    <input type="hidden" id="op"  name="op" value="{$op}" />
                    <input type="hidden" id="act" name="act" value="{$act}" />
                    <input type="hidden" id="searchTerms" name="searchTerms" value="{$searchTerms}"/>
                    <input type="hidden" id="searchStatus" name="searchStatus" value="{$searchStatus}"/>
                    <input type="hidden" id="orderBy" name="orderBy" value="{$orderBy}"/>
                    <input type="hidden" id="orderDir" name="orderDir" value="{$orderDir}"/>
                    <input type="hidden" id="page" name="page" value="{$page}"/>
                    <input type="hidden" id="oId" name="oId" value=""/>
                    <input type="hidden" id="position" name="position" value=""/>
                    <input type="hidden" id="plus" name="plus" id="plus" value=""/>
                    </p>
                    {include file="admin/paging.temp.html" title=paging}
                </div>
            </div>
        </form>
    </div>
</div>